package com.nanjia.boot.myflow.order.item.model.form;

import java.io.Serial;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import jakarta.validation.constraints.*;

/**
 * 订单商品明细表单对象
 *
 * @author 周洋
 * @since 2025-07-18 14:59
 */
@Getter
@Setter
@Schema(description = "订单商品明细表单对象")
@JsonIgnoreProperties(ignoreUnknown = true)
public class OrderItemForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;


    private Long id;

    @Schema(description = "订单ID")
    @NotNull(message = "订单ID不能为空")
    private Long orderId;

    @Schema(description = "SKU ID")
    @NotNull(message = "SKU ID不能为空")
    private Long skuId;

    @Schema(description = "商品名称")
    @NotBlank(message = "商品名称不能为空")
    private String productName;


    private String skuSpecs;


    private BigDecimal price;


    private Integer quantity;
    private Integer completedQuantity;

    private Long daf0Id;

    private Long daf1Id;
}
